export interface userInt {
  id: number
  name: string
  role: RoleInt[]
  tel: string
  username: string
}

export interface RoleInt {
  num: number
  name: string
}

export interface searchUserInt {
  num: number
  name: string
}

export interface editUserInt {
  id: number
  name: string
  role: number[]    //这里是只获取存储角色的num信息 
  //role: RoleInt[]      // 这里是存储整个role信息
  tel: string
  username: string
}

export class userData {
  //接受用户信息列表
  userList: userInt[] = []

  search: searchUserInt = {
    num: 0,
    name: ''
  }

  //角色列表
  roleList: RoleInt[] = []

  editUser: editUserInt = {
    id: 0,
    name: '',
    role: [],
    tel: '',
    username: ''
  }
  dialogFormVisible = false
}
